﻿<?php
include_once "../../lib/init.php";
include_once "../admin/pageNew.class.php";
$mySqlHelper = new MySqlHelper();

$sqlpage = "select count(*) from log_sheet";
$num=$mySqlHelper->mGetOne($sqlpage)[0];

$curr=isset($_GET['page'])?$_GET['page']:1;
$cnt=10;
$page=getPage($num,$curr,$cnt);
//print_r($page);
$sql="select * from log_sheet limit ".($curr-1)*$cnt.",".$cnt;
$res = $mySqlHelper->getRowsArray($sql);

/*
    $total=$mySqlHelper->getRowsNum("select * from log_sheet");
	$num=5;
	$page=new Page($total, $num, "&cid=99");
	$sql="select * from log_sheet {$page->limit}";
    $res1= $page->fpage();
    $pageres =$mySqlHelper->getFetchAssoc($sql);
echo "<pre>";
  */

require_once ROOT."/view/admin/content.html";
